import javax.xml.crypto.Data;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

public class Test5 {
    public static void main(String[] args) throws ParseException {
        Date date = new Date();
        LocalDateTime now1 = LocalDateTime.now();
        DateTimeFormatter id2 = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH时mm分ss秒");
        System.out.println(id2.format(now1));
        SimpleDateFormat a = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
        System.out.println(a.format(date));





    }
}
